<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    @keyframes rotate {
      /* 0% {
        transform: rotate(0deg);
      } */

      100% {
        transform: rotate(360deg);
      }
    }

    img {
      width: 500px;
      height: 500px;
      display: block;
      margin: 100px auto;
      animation: rotate 1.5s linear infinite;
    }
  </style>
</head>

<body>
  <img src="./images/timg.jpg" alt="">
</body>

</html>